package com.lagou.framework;

import com.lagou.framework.context.DemoServletWebServerApplicationContext;

public class DemoSpringApplication {

    public static void run(Class<?> primarySource) {
        DemoServletWebServerApplicationContext context = new DemoServletWebServerApplicationContext();
        context.register(primarySource);
        context.refresh();
    }

}
